#{extends 'main.html' /}
#{set title:'Activities' /}

#{if !activities.isEmpty()}
<h2> Current Activities </h2>
 			<ul>
 			#{list items:activities, as:'a'}
             <li>${a.name}</li>
            #{/list}
            </ul>
            <br>
#{/if}
            
<h2> Create Activity </h2>

<form id ="form" action="@{Application.createActivity()}" method="POST">
    <table border="0">
    <tbody>
    <tr><td>Name</td> 
    <td><input type="text" name="name" value="" required ="required"/>&nbsp;&nbsp;<input type="submit" value="Create Actitvity"/></td></tr>
    </tbody>
    </table>
    <br>
    
    
</form>

